<div class="faqs form">
<?php echo $this->ExtendedForm->create('Faq', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Faq'); ?></h3>
    <div class="form-group row">
        <div class="col-sm-2">
            <label for="language">Language</label>
            <select name="language" id="language" class="form-control">
                <option value="vietnam">VietNam</option>
                <option value="english">English</option>
                <option value="japan">Japan</option>
            </select>
        </div>
    </div>
	<?php
        if(isset($this->request->params['named']['created_date'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('created_date', array_merge(array('label' => __d('admin', 'Created Date'))));
		if(isset($this->request->params['named']['created_date'])) echo '</div>';
    ?>
    <div class="area-language" id="text-vietnam">
    <?php
		if(isset($this->request->params['named']['question'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.question', array_merge(array('type' => 'textarea','label' => __d('admin', 'Question'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['question'])) echo '</div>';

		if(isset($this->request->params['named']['answer'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.answer', array_merge(array('type' => 'textarea','label' => __d('admin', 'Answer'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['answer'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-english" style="display:none">
    <?php
		if(isset($this->request->params['named']['question_eng'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.question_eng', array_merge(array('type' => 'textarea','label' => __d('admin', 'Question Eng'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['question_eng'])) echo '</div>';

		if(isset($this->request->params['named']['answer_eng'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.answer_eng', array_merge(array('type' => 'textarea','label' => __d('admin', 'Answer Eng'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['answer_eng'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-japan" style="display:none">
    <?php
		if(isset($this->request->params['named']['question_jpn'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.question_jpn', array_merge(array('type' => 'textarea','label' => __d('admin', 'Question Jpn'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['question_jpn'])) echo '</div>';

		if(isset($this->request->params['named']['answer_jpn'])) echo '<div style="display: none;">';
		echo $this->Form->input('Faq.answer_jpn', array_merge(array('type' => 'textarea','label' => __d('admin', 'Answer Jpn'), 'class' => 'form-control', 'div' => 'form-group')));
		if(isset($this->request->params['named']['answer_jpn'])) echo '</div>';

	?>
    </div>
	<?php
		if(isset($this->request->params['named']['faq_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('faq_id', array_merge(array('label' => __d('admin', 'Faq'))));
		if(isset($this->request->params['named']['faq_id'])) echo '</div>';
	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Faq'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>